/**
 * 
 */
package com.poc.hibernate.dao;

import java.util.List;

import com.poc.hibernate.model.User;

/**
 * @author Charles
 *
 */
public abstract class UserDAO extends AbstractDAO {

//	public UserDAO() {
//        Configuration cfg = null;
//        try {
//            cfg = new Configuration().addClass(User.class);
//        } catch (MappingException e) {
//            e.printStackTrace();
//        }
//
//        try {
//            sessionFactory = cfg.configure().buildSessionFactory();
//        } catch (HibernateException e) {
//            e.printStackTrace();
//        }
//    }

	public abstract boolean createUser(User user);
	public abstract User retrieveUser(String username);
	public abstract List<User> retrieveAllUsers();
	public abstract boolean updateUser(User user);
	public abstract boolean deleteUser(User user);
}
